package chexuan.game.interfaces.io.connection;

import chexuan.game.bean.packet.common.Packet;

public interface PacketListener {
	/**
	 * Process the next packet sent to this packet listener.
	 * <p>
	 * 
	 * A single thread is responsible for invoking all listeners, so it's very
	 * important that implementations of this method not block for any extended
	 * period of time.
	 * 
	 * @param packet
	 *            the packet to process.
	 */
	public void processPacket(Packet packet);
}
